package com.pattern.seener;

/**
 * 测试观察者模式
 */
public class TestSeener {
    public static void main(String[] args) {
        ProductList productList = ProductList.getInstance();
        JinDongObserver jinDongObserver = new JinDongObserver();
        TaobaoObserver taobaoObserver = new TaobaoObserver();
        productList.addObserver(taobaoObserver);
        productList.addObserver(jinDongObserver);
        productList.addProduct("你一定要完成这个接口");
    }
}
